package com.yuyou.fn.tradingservice.entity;

import com.github.wens.mybatisplus.annotations.TableField;
import com.github.wens.mybatisplus.annotations.TableId;
import com.github.wens.mybatisplus.annotations.TableName;
import com.github.wens.mybatisplus.examples.Example;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 *
 * 服务购物车项
 *
 */
@TableName(value = "service_product_listing")
public class ServiceProductListing implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	public static Example<ServiceProductListing> createExample(){
		return new Example<ServiceProductListing>(ServiceProductListing.class);
	}

	@TableId(value = "listing_id")
	private Long listingId;

	/** 商品id */
	@TableField(value = "product_id")
	private Long productId;

	@TableField(value = "vendor_name")
	private String vendorName;

	/** 商品名称 */
	@TableField(value = "product_name")
	private String productName;



	/** 数量 */
	private Integer quantity;

	/** 分类id */
	@TableField(value = "category_id")
	private Long categoryId;

	/** 类别名称 */
	@TableField(value = "category_name")
	private String categoryName;


	/** 单价 */
	@TableField(value ="unit_price")
	private BigDecimal unitPrice;


	/** 所属服务的类型 */
	private Integer type;

	/** 创建时间 */
	@TableField(value = "create_time")
	private Date createTime;

	/** 更新时间 */
	@TableField(value = "update_time")
	private Date updateTime;

	/** 图片url */
	@TableField(value = "image_url")
	private String imageUrl;






	/** 金额（数量*单价） */
	@TableField(value = "total_price")
	private BigDecimal totalPrice;

	/**  */
	@TableField(value = "person_lease_ids")
	private String personLeaseIds;

	/**  */
	@TableField(value = "buyer_id")
	private Long buyerId;

	/**  */
	@TableField(value = "buyer_name")
	private String buyerName;

	@TableField(value = "buyer_phone_no")
	private String buyerPhoneNo;

	/**  */
	@TableField(value = "seller_id")
	private Long sellerId;

	/**  */
	@TableField(value = "seller_name")
	private String sellerName;

	@TableField(value = "seller_phone_no")
	private String sellerPhoneNo;

	@TableField(value = "campus_id")
	private Long campusId;

	@TableField(value = "campus_name")
	private String campusName;

	@TableField(value = "room_id")
	private Long roomId;

	@TableField(value = "room_name")
	private String roomName;

	private String province;

	private String city;

	private String district;

	private String address;

	@TableField(value = "category_ids")
	private String categoryIds;

	@TableField(value = "category_names")
	private String categoryNames;

	@TableField(value = "effectiveness")
	private Integer effectiveness;

	@TableField(value = "failure_reason")
	private String failureReason;


	public Long getListingId() {
		return this.listingId;
	}

	public void setListingId(Long listingId) {
		this.listingId = listingId;
	}

	public Long getProductId() {
		return this.productId;
	}

	public void setProductId(Long productId) {
		this.productId = productId;
	}

	public String getProductName() {
		return this.productName;
	}

	public String getVendorName() {
		return vendorName;
	}

	public void setVendorName(String vendorName) {
		this.vendorName = vendorName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}


	public Integer getQuantity() {
		return this.quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}

	public Long getCategoryId() {
		return this.categoryId;
	}

	public void setCategoryId(Long categoryId) {
		this.categoryId = categoryId;
	}

	public String getCategoryName() {
		return this.categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}



	public BigDecimal getUnitPrice() {
		return this.unitPrice;
	}

	public void setUnitPrice(BigDecimal unitPrice) {
		this.unitPrice = unitPrice;
	}



	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public String getImageUrl() {
		return this.imageUrl;
	}

	public void setImageUrl(String imageUrl) {
		this.imageUrl = imageUrl;
	}



	public BigDecimal getTotalPrice() {
		return this.totalPrice;
	}

	public void setTotalPrice(BigDecimal totalPrice) {
		this.totalPrice = totalPrice;
	}

	public String getPersonLeaseIds() {
		return this.personLeaseIds;
	}

	public void setPersonLeaseIds(String personLeaseIds) {
		this.personLeaseIds = personLeaseIds;
	}

	public Long getBuyerId() {
		return this.buyerId;
	}

	public void setBuyerId(Long buyerId) {
		this.buyerId = buyerId;
	}

	public String getBuyerName() {
		return this.buyerName;
	}

	public void setBuyerName(String buyerName) {
		this.buyerName = buyerName;
	}

	public Long getSellerId() {
		return this.sellerId;
	}

	public void setSellerId(Long sellerId) {
		this.sellerId = sellerId;
	}

	public String getSellerName() {
		return this.sellerName;
	}

	public void setSellerName(String username) {
		this.sellerName = username;
	}

	public String getBuyerPhoneNo() {
		return buyerPhoneNo;
	}

	public void setBuyerPhoneNo(String buyerPhoneNo) {
		this.buyerPhoneNo = buyerPhoneNo;
	}

	public String getSellerPhoneNo() {
		return sellerPhoneNo;
	}

	public void setSellerPhoneNo(String sellerPhoneNo) {
		this.sellerPhoneNo = sellerPhoneNo;
	}

	public Long getCampusId() {
		return campusId;
	}

	public void setCampusId(Long campusId) {
		this.campusId = campusId;
	}

	public String getCampusName() {
		return campusName;
	}

	public void setCampusName(String campusName) {
		this.campusName = campusName;
	}

	public Long getRoomId() {
		return roomId;
	}

	public void setRoomId(Long roomId) {
		this.roomId = roomId;
	}

	public String getRoomName() {
		return roomName;
	}

	public void setRoomName(String roomName) {
		this.roomName = roomName;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getDistrict() {
		return district;
	}

	public void setDistrict(String district) {
		this.district = district;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getCategoryIds() {
		return categoryIds;
	}

	public void setCategoryIds(String categoryIds) {
		this.categoryIds = categoryIds;
	}

	public String getCategoryNames() {
		return categoryNames;
	}

	public void setCategoryNames(String categoryNames) {
		this.categoryNames = categoryNames;
	}

	public Integer getEffectiveness() {
		return effectiveness;
	}

	public void setEffectiveness(Integer effectiveness) {
		this.effectiveness = effectiveness;
	}

	public String getFailureReason() {
		return failureReason;
	}

	public void setFailureReason(String failureReason) {
		this.failureReason = failureReason;
	}
}
